import request from '../utils/request'
import { HttpMethod } from '../utils/http'

export default {
  get (id) {
    return request({
      url: `/api/subject/get/${id}`,
      method: HttpMethod.GET
    })
  },
  getAll () {
    return request({
      url: `/api/subject/get/all`,
      method: HttpMethod.GET
    })
  },
  getByPage (current, size) {
    return request({
      url: `/api/subject/get/page/${current}/${size}`,
      method: HttpMethod.GET
    })
  }
}
